#include <stdio.h>
int main()
{
    int a,b,c,d;
    int result = 0;
    printf("请依次输入年 月 日的值:");
    scanf("%d%d%d",&a,&b,&c);
    if (a%4 == 0)
    {
        d = 1;
        printf("这一年是闰年！");
    }else
    {
        printf("这一年是平年!");
    }
    
    
    switch (b-1)
    {
        case 12:
            result =result + 31;

        case 11:
            result =result + 30;
        
        case 10:
            result =result + 31;
        
        case 9:
            result =result + 30;
        
        case 8:
            result =result + 31;
        
        case 7:
            result =result + 31;
       
        case 6:
            result =result + 30;
        
        case 5:
            result =result + 31;
        
        case 4:
            result =result + 30;
        
        case 3:
            result =result + 31;
        
        case 2:
            if (d == 1)
            {
                result = result + 29;
            }else
            {
                result = result + 28;
            }
        
        case 1:
            result = result + 31;
            break;        
    default:
        printf("ERROR!");
        break;
    }
        result = result + c;
        printf("这个日期为%d年的第%d天",a,result);

    return 0;
}